#include <gtk/gtk.h>
#include <sqlite3.h>
#include <string.h>
#include <stdio.h>
#include "index.h"
#include "homepage.h"
#include "operation.h"
#include "showdata.h"
#include "modifydata.h"
#include "error.h"

/*------------------------------main函数设置----------------------*/
int main(int argc, char *argv[])
{
    // 数据库初始化
    db_init();

    gtk_init(&argc, &argv);

    // 用于显示错误信息窗口
    // window_error = create_error_window();

    window_homepage = create_main_window();
    window_operation = create_operation_window();
    window_showdata = create_showdata_window();
    window_modifydata = create_modifydata_window();

    // gtk_widget_show_all(window_test);

    gtk_widget_show_all(window_homepage);

    gtk_main();

    return 0;
}
